import './index.html';
import './index.less';
import dva from 'dva';
import {browserHistory} from 'dva/router';

window.pageSize = 1;
window.dateFormat = 'YYYY-MM-DD';
// 1. Initialize
const app = dva({
    history: browserHistory,
});

// 2. Model
app.model(require('./models/user'));
app.model(require('./models/login'));
app.model(require('./models/aside'));

// 3. Router
app.router(require('./router'));

// 4. Start
app.start('#root');
